﻿@{
    Layout = null;
}
@using CoreData
@model EmailList
<div class="row-fluid">
    <div class="span12">
        <div class="head">
            <div class="isw-documents">
            </div>
            <h1>
                Detail</h1>
            <div class="clear">
            </div>
        </div>
        <div class="block-fluid tabs">
            <ul>
                <li><a href="#tabs-1">Content</a></li>
            </ul>
            @using (Ajax.BeginForm("AddOrUpdate", "EmailListManagement", new AjaxOptions { OnSuccess = "Success", HttpMethod = "Post" }, new { enctype = "multipart/form-data", @id = "validation" }))
            {
                <div class="warning-area">
                </div>
                <div id="tabs-1">
                    @Html.HiddenFor(x => x.ID)
                    <div class="row-form">
                        <div class="span2">
                            Email:</div>
                        <div class="span9">
                            @Html.TextBoxFor(x => x.Email, new { @class = "validate[required]" })</div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                if (Helper.SessionManagement.Value("pvalue").Contains("C") || Helper.SessionManagement.Value("pvalue").Contains("U"))
                {
                <div class="row-form">
                    <div class="span2">
                    </div>
                    <div class="span9">
                        <input type="submit" class="btn btn-info span3" value="Update" /></div>
                    <div class="clear">
                    </div>
                </div>
                }

            }
        </div>
    </div>
</div>
